--[[function QMenu()

PropTable = {
"models/props_c17/fence03a.mdl",
"models/props_c17/fence01b.mdl",
"models/props_c17/fence01a.mdl",
"models/props_wasteland/interior_fence003b.mdl",
"models/props_wasteland/interior_fence003a.mdl",
"models/props_wasteland/interior_fence002f.mdl",
"models/props_wasteland/interior_fence002e.mdl",
"models/props_wasteland/interior_fence002d.mdl",
"models/props_wasteland/interior_fence002c.mdl",
"models/props_wasteland/interior_fence002b.mdl",
"models/props_wasteland/interior_fence002a.mdl",
"models/props_wasteland/interior_fence001g.mdl",
"models/props_wasteland/interior_fence001d.mdl",
"models/props_wasteland/interior_fence001d.mdl",
"models/props_wasteland/interior_fence001c.mdl",
"models/props_wasteland/interior_fence001b.mdl",
"models/props_wasteland/interior_fence001a.mdl",
"models/props_c17/concrete_barrier001a.mdl",
"models/props_building_details/Storefront_Template001a_Bars.mdl"
}

//qmenu
DermaFrame = vgui.Create( "DFrame" )
DermaFrame:SetSize( 300, 350 )
DermaFrame:SetTitle( "Q Menu" )
DermaFrame:SetDraggable( false )
DermaFrame:Center()
DermaFrame:MakePopup()

//props

DermaPropertySheet = vgui.Create( "DPropertySheet", DermaFrame )
DermaPropertySheet:SetPos( 10, 32 )
DermaPropertySheet:SetSize( DermaFrame:GetWide() - 20, DermaFrame:GetTall() - 52 )

DermaList = vgui.Create( "DPanelList", DermaPropertySheet )
DermaList:SetPos( 10, 42 )
DermaList:SetSize( DermaFrame:GetWide() - 20, DermaFrame:GetTall() - 52 )
DermaList:SetSpacing( 0 )
DermaList:EnableHorizontal( true )
DermaList:EnableVerticalScrollbar( true )

	for k, v in pairs( PropTable ) do
		Icon = vgui.Create( "SpawnIcon", DermaList )
		Icon:SetModel( v )
		DermaList:AddItem( Icon )
		Icon.DoClick = function( icon ) surface.PlaySound( "ui/buttonclickrelease.wav" )
		RunConsoleCommand( "gm_spawn", v ) end
	end
	
//tools

DermaListView = vgui.Create( "DListView" )
DermaListView:SetPos( 10, 42 )
DermaListView:SetSize( DermaFrame:GetWide() - 20, DermaFrame:GetTall() - 52 )
DermaListView:SetMultiSelect( false )
DermaListView:AddColumn( "Tools" )

	for k,v in pairs( spawnmenu.GetTools() ) do
		DermaListView:AddLine( v )
	end

//utilities

DermaList3 = vgui.Create( "DPanelList", DermaPropertySheet )
DermaList3:SetPos( 10, 42 )
DermaList3:SetSize( DermaFrame:GetWide() - 20, DermaFrame:GetTall() - 52 )
DermaList3:SetSpacing( 0 )
DermaList3:EnableHorizontal( true )
	
DermaPropertySheet:AddSheet( "Props", DermaList, "gui/silkicons/application_view_tile", false, false, nil )
DermaPropertySheet:AddSheet( "Tools", DermaListView, "gui/silkicons/wrench", false, false, nil )
DermaPropertySheet:AddSheet( "Utilities", DermaList3, "gui/silkicons/page_white_wrench", false, false, nil )

end

function BlockProps( ply, mdl )
	if !table.HasValue( PropTable, mdl ) then 
	return false
	end
end
hook.Add("PlayerSpawnProp", "BlockProps", BlockProps)
concommand.Add( "OpenQMenu", QMenu )

function GM:OnSpawnMenuOpen()
if !DermaFrame then QMenu() end
DermaFrame:SetVisible( true )
end

function GM:OnSpawnMenuClose()
if DermaFrame then
DermaFrame:SetVisible( false )
end
end--]]